<template>
	<view>
		<stop isBack>
			<view slot="content">工作量记录</view>
		</stop>
		<view class="mart3 ">
			<sentity model="CimingUser" v-model="en.user" label="选择用户" placeholder="请选择"></sentity>
		</view>
		<view class="mart3 ">
			<sentity model="KpiUserSalesLogType" v-model="en.type" label="选择类型" placeholder="请选择"></sentity>
		</view>
		<view class="mart3">
			<stext label="工作量" placeholder="请输入工作量" v-model="en.num"></stext>
		</view>
		<view class="mart3 bcf padtb3">
			<ssubmit model="kpiUserSalesLogs" v-model="en"></ssubmit>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				en:{
					user:'',
					customerBookSn:'',
					num:'',
					type:'',
				}
			}
		},
		methods: {
			
		},
		onLoad(option) {
			if(this.isbool(option.user))this.en.user = option.user
			if(this.isbool(option.sn))this.en.customerBookSn = option.sn
			if(this.isbool(option.type))this.en.type = '/api_/kpi_user_sales_log_types/' + option.type
			
		}
	}
</script>

<style>

</style>
